import request from "@/utils/request";

/**
 * 获取统计维度列表
 */
export function libraryList(params) {
  return request({
    url: "/report/material/libraryList",
    method: "get",
    params: params
  });
}

/**
 * 饼图统计
 */
export function pieChart(params) {
  return request({
    url: "/report/material/pieChart",
    method: "post",
    data: params
  });
}

/**
 * 折线图统计
 */
export function lineChart(params) {
  return request({
    url: "/report/material/lineChart",
    method: "post",
    data: params
  });
}

export function getDetailList(needTime, params) {
  return request({
    url: '/report/material/detailList',
    method: "post",
    data: params,
    params: { needTime: needTime }
  })
}
